<?php
/**
 * Created by : PhpStorm
 * User: DuFei
 * Date: 2020/7/30
 * Time: 15:46
 */

namespace app\models\request;

use yii\base\Model;

class ReqTypeAdd extends Model
{
    private $id;
    private $name;
    private $remark;
    private $type;

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getRemark()
    {
        return $this->remark;
    }

    /**
     * @param mixed $remark
     */
    public function setRemark($remark)
    {
        $this->remark = $remark;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param mixed $type
     */
    public function setType($type)
    {
        $this->type = $type;
    }







    public function rules()
    {
        return [
            [[ 'name','type'], 'required'],
            [["remark","id"],"safe"]
        ];
    }


}
